basic algorithm scripting find the longest word in a string freecodecamp